package com.ruoyi.project.meal.service.impl;

import java.util.List;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.meal.domain.MealServiceObjectsList;
import com.ruoyi.project.meal.mapper.MealServiceObjectsListMapper;
import com.ruoyi.project.meal.service.IMealServiceObjectsListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 服务对象报餐明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-07
 */
@Service
public class MealServiceObjectsListServiceImpl implements IMealServiceObjectsListService
{
    @Autowired
    private MealServiceObjectsListMapper mealServiceObjectsListMapper;

    /**
     * 查询服务对象报餐明细
     * 
     * @param id 服务对象报餐明细主键
     * @return 服务对象报餐明细
     */
    @Override
    public MealServiceObjectsList selectMealServiceObjectsListById(Integer id)
    {
        return mealServiceObjectsListMapper.selectMealServiceObjectsListById(id);
    }

    /**
     * 查询服务对象报餐明细列表
     * 
     * @param mealServiceObjectsList 服务对象报餐明细
     * @return 服务对象报餐明细
     */
    @Override
    public List<MealServiceObjectsList> selectMealServiceObjectsListList(MealServiceObjectsList mealServiceObjectsList)
    {
        return mealServiceObjectsListMapper.selectMealServiceObjectsListList(mealServiceObjectsList);
    }

    @Override
    public List<MealServiceObjectsList> selectCount(MealServiceObjectsList mealServiceObjectsList) {
        return mealServiceObjectsListMapper.selectCount(mealServiceObjectsList);
    }

    /**
     * 新增服务对象报餐明细
     * 
     * @param mealServiceObjectsList 服务对象报餐明细
     * @return 结果
     */
    @Override
    public int insertMealServiceObjectsList(MealServiceObjectsList mealServiceObjectsList)
    {
        return mealServiceObjectsListMapper.insertMealServiceObjectsList(mealServiceObjectsList);
    }

    /**
     * 修改服务对象报餐明细
     * 
     * @param mealServiceObjectsList 服务对象报餐明细
     * @return 结果
     */
    @Override
    public int updateMealServiceObjectsList(MealServiceObjectsList mealServiceObjectsList)
    {
        return mealServiceObjectsListMapper.updateMealServiceObjectsList(mealServiceObjectsList);
    }

    /**
     * 批量删除服务对象报餐明细
     * 
     * @param ids 需要删除的服务对象报餐明细主键
     * @return 结果
     */
    @Override
    public int deleteMealServiceObjectsListByIds(String ids)
    {
        return mealServiceObjectsListMapper.deleteMealServiceObjectsListByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除服务对象报餐明细信息
     * 
     * @param id 服务对象报餐明细主键
     * @return 结果
     */
    @Override
    public int deleteMealServiceObjectsListById(Integer id)
    {
        return mealServiceObjectsListMapper.deleteMealServiceObjectsListById(id);
    }
}
